<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <title></title>
</head>
<style>
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        overflow: hidden;
        background-color: #000;
        color: red;
        perspective-origin: bottom;
        perspective: 100vmin;
    }

    div {
        width: 30vh;
        aspect-ratio: 1;
        cursor: pointer;
        margin: 0 auto;
        position: relative;
        transform-style: preserve-3d;
        transform: rotateX(45deg);
        animation: 16s linear 0s infinite paused rota;
        animation-play-state: running;
    }

    span {
        width: 70px;
        text-align: center;
        border-radius: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        font: bold 30px monospace;
        text-transform: uppercase;
        --inner-angle: calc((360 / var(--num)) * 1deg);
        -webkit-box-reflect: below 5px linear-gradient(red, red);
        transform: translate(-50%, -50%) rotate(calc(var(--inner-angle) * var(--index) * -1)) translateY(7.5em) rotateX(-80deg);
        transform-style: preserve-3d;
    }

    span:nth-child(2n) {
        border-top: 1px solid red;
    }

    span:nth-child(2n + 1) {
        border-bottom: 1px solid red;
    }

    @keyframes rota {
        0% {
            transform: rotateX(30deg) rotateZ(0deg);
        }

        50% {
            transform: rotateX(160deg) rotateZ(360deg);
        }

        100% {
            transform: rotateX(30deg) rotateZ(360deg);
        }
    }
</style>

<body>
    <div>
        <span>♥</span><span>L</span><span>O</span><span>V</span><span>E</span><span>♥</span><span>Y</span><span>O</span><span>U</span><span>♥</span><span>L</span><span>O</span><span>V</span><span>E</span><span>♥</span><span>Y</span><span>O</span><span>U</span>
    </div>
</body>
<script>
    let spans = document.querySelectorAll('span'), div = document.querySelector('div');
    for (let i = 0; i < spans.length; i++) {
        spans[i].style.cssText = '--index:' + i;
    }
    div.style.cssText = '--num:' + spans.length
</script>

</html>